#ifndef __CONFIG_H__
#define __CONFIG_H__

#if !defined(USE_CLASS_A) && !defined(USE_CLASS_C)
    #error "Please define a lora class mode in your application"
#elif defined(USE_CLASS_A) && defined(USE_CLASS_C)
    #error "Lora class mode redefined,choose CLASS_A or CLASS_C"
#endif

#ifndef LORAMAC_TEST  //used for release version
    #if defined(USE_CLASS_A)
    #define LOW_POWER
    #endif
    #define UART_PRINTF
    #define IWDOG
    #define USE_BOOTLOADER //Receive flash info from raspberry pi
    #define LOGLEVEL LOG_INFO
#else //used for test and debug
    #define UART_PRINTF
    #define USE_BOOTLOADER //Receive flash info from raspberry pi
    #define LOGLEVEL LOG_DEBUG
    #define USE_DEBUGGER
    //#define WRITE_READ_JOIN_INFO  //Open write&read join info
#endif

#endif

